Skip to main content

Texture Mapping


Texture Mapping (Tutorial)

Texture Mapping does real-time affine texture mapping on convex flat surfaces in 3D space using Python, NumPy and CPU for calculations (each pixel calculated in this module) and pygame for display. There's a tutorial mode which shows the mapping sections on both the original still image and the 3D rotated surface. (Set self.tutorial_mode to True for tutorial mode.)

Texture Mapping on a Sphere

Texture mapping on a sphere, here a rotating globe, using NumPy math and a simple Mercator projection map. Real-time 3D rotation with some limitations.

next